/*
 * listener.h for GodSpeaker
 *
 *
 * Author: healich@gmail.com
 */
#ifndef LISTENER_H
#define LISTENER_H

#include <qwidget.h>

class QListBox;
class QPushButton;
class QLabel;
class QString;

class Listener : public QWidget
{
    Q_OBJECT
public:
    Listener( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    ~Listener();
//signals:
//    void testSignal();    // signal for test button

public slots:
    void addListItem(const QString &strItem);

private slots:
    void testClicked();     //test slot
    void listSelected(int i);
    void delItem();
    void prevItem();
    void nextItem();

private:
    QListBox *msglistBox;
    QPushButton *delBtn;
    QPushButton *prevBtn;
    QPushButton *nextBtn;
QPushButton *testBtn;	//test button
    QLabel *msgLabel;

   int totalItems;
   int curItem;
};

#endif
